package com.ojoin.trade.common.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ojoin.trade.common.web.dao.BaseDao;
import com.ojoin.trade.common.web.dao.MenuDao;
import com.ojoin.trade.common.web.domain.Menu;
import com.ojoin.trade.common.web.service.MenuService;

@Service
public class MenuServiceImpl extends BaseServiceImpl<Menu> implements MenuService {

	@Autowired 
	private MenuDao dao;

	@Override
	protected BaseDao<Menu> getBaseDao() {
		return dao;
	}

	@Override
	public List<Menu> findByUserId(Menu menu) {
		return dao.findByUserId(menu);
	}

}
